package com.powerunion.datacollection.workflow.fsm.state.task;

import com.powerunion.datacollection.workflow.fsm.FMName;
import com.powerunion.datacollection.workflow.fsm.WFTask;
import com.powerunion.datacollection.workflow.fsm.core.task.WFTaskContext;

public class WFTaskStartState extends WFTask {  

	public void abort() {
		throw new RuntimeException("处于Start状态，不能执行abort()");
	}

	public void cancel() {
		throw new RuntimeException("处于Start状态，不能执行cancel()");
	}

	public void complete() {
		throw new RuntimeException("处于Start状态，不能执行complete()");
	}

	public void run() {
		throw new RuntimeException("处于Start状态，不能执行run()");

	}

	public void start() {
		this.context.setCurrentState(WFTaskContext.startState);
		
	}

	public void suspend() {
		// TODO Auto-generated method stub

	}

	public void terminate() {
		// TODO Auto-generated method stub

	}

	public void updateSubState() {
	
	}

	public String getStateName() {
		//return FMName.wk_task_state_name_start;
		return FMName.wk_task_state_notstart;
	}

	public int getStateNum() {
		return FMName.wk_task_state_num_notstart;
	}

}
